<%@ include file = "/tree_css_js_img/_xtree_js.jsp"%>
<%@ include file = "_getAllNodes.jsp"%>
<html>
<head>
<%@ include file = "/tree_css_js_img/_xtree_css.jsp"%>
<script>
function changepage(page)
{
	parent.changefuncpage(page);
}
function openNew(www)
{
	window.open(www,'_blank');
}
function clickRoot()
{
  //点击根节点显示整棵树下面的节点
  changepage("<%= rootUrl%>");
  window.location.reload();
}
</script>
</head>
<BODY >
<TABLE  height="100%" >
	<TR>
		<TD valign="top">
		<script>
		if (document.getElementById)
		{
				//根节点 与 非根节点
				<% 
				try
				{
						
						for(int i = 0; i < allNodes.size(); i ++)
						{
								TreeNode treeNode = (TreeNode)allNodes.get(i);
								out.print(treeNode.getScript4XTree(treeImagePath));
						}
				}
				catch(Exception x)
				{
						logger.error("系统异常,构造树失败"+x.toString());
						%>
								alert("系统异常,构造树失败,请重试.");
						<%
				}
				%>
				document.write(<%= rootNode.getNodeId4XTree()%>);
		}
		</script>
		</TD>
	</TR>
</TABLE>
</body>
</html>
 
